package com.xyzwps.ewa.data

import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.transactions.TransactionManager

val database = run {
    val db = Database.connect(
        url = "jdbc:h2:./demo",
        user = "root",
        driver = "org.h2.Driver",
        password = "",
    )
    TransactionManager.defaultDatabase = db
    db
}